﻿using System;
using System.Text.RegularExpressions;
using Terraria.Utilities;

namespace Terraria.Localization
{
	// Token: 0x0200031F RID: 799
	public static class Language
	{
		// Token: 0x17000214 RID: 532
		// (get) Token: 0x06001DF7 RID: 7671 RVA: 0x00015410 File Offset: 0x00013610
		public static GameCulture ActiveCulture
		{
			get
			{
				return LanguageManager.Instance.ActiveCulture;
			}
		}

		// Token: 0x06001DF8 RID: 7672 RVA: 0x0001541C File Offset: 0x0001361C
		public static LocalizedText GetText(string key)
		{
			return LanguageManager.Instance.GetText(key);
		}

		// Token: 0x06001DF9 RID: 7673 RVA: 0x00015429 File Offset: 0x00013629
		public static string GetTextValue(string key)
		{
			return LanguageManager.Instance.GetTextValue(key);
		}

		// Token: 0x06001DFA RID: 7674 RVA: 0x00015436 File Offset: 0x00013636
		public static string GetTextValue(string key, object arg0)
		{
			return LanguageManager.Instance.GetTextValue(key, arg0);
		}

		// Token: 0x06001DFB RID: 7675 RVA: 0x00015444 File Offset: 0x00013644
		public static string GetTextValue(string key, object arg0, object arg1)
		{
			return LanguageManager.Instance.GetTextValue(key, arg0, arg1);
		}

		// Token: 0x06001DFC RID: 7676 RVA: 0x00015453 File Offset: 0x00013653
		public static string GetTextValue(string key, object arg0, object arg1, object arg2)
		{
			return LanguageManager.Instance.GetTextValue(key, arg0, arg1, arg2);
		}

		// Token: 0x06001DFD RID: 7677 RVA: 0x00015463 File Offset: 0x00013663
		public static string GetTextValue(string key, params object[] args)
		{
			return LanguageManager.Instance.GetTextValue(key, args);
		}

		// Token: 0x06001DFE RID: 7678 RVA: 0x00015471 File Offset: 0x00013671
		public static string GetTextValueWith(string key, object obj)
		{
			return LanguageManager.Instance.GetText(key).FormatWith(obj);
		}

		// Token: 0x06001DFF RID: 7679 RVA: 0x00015484 File Offset: 0x00013684
		public static bool Exists(string key)
		{
			return LanguageManager.Instance.Exists(key);
		}

		// Token: 0x06001E00 RID: 7680 RVA: 0x00015491 File Offset: 0x00013691
		public static int GetCategorySize(string key)
		{
			return LanguageManager.Instance.GetCategorySize(key);
		}

		// Token: 0x06001E01 RID: 7681 RVA: 0x0001549E File Offset: 0x0001369E
		public static LocalizedText[] FindAll(Regex regex)
		{
			return LanguageManager.Instance.FindAll(regex);
		}

		// Token: 0x06001E02 RID: 7682 RVA: 0x000154AB File Offset: 0x000136AB
		public static LocalizedText[] FindAll(LanguageSearchFilter filter)
		{
			return LanguageManager.Instance.FindAll(filter);
		}

		// Token: 0x06001E03 RID: 7683 RVA: 0x000154B8 File Offset: 0x000136B8
		public static LocalizedText SelectRandom(LanguageSearchFilter filter, UnifiedRandom random = null)
		{
			return LanguageManager.Instance.SelectRandom(filter, random);
		}

		// Token: 0x06001E04 RID: 7684 RVA: 0x000154C6 File Offset: 0x000136C6
		public static LocalizedText RandomFromCategory(string categoryName, UnifiedRandom random = null)
		{
			return LanguageManager.Instance.RandomFromCategory(categoryName, random);
		}
	}
}
